<%--
  Created by IntelliJ IDEA.
  User: 松红
  Date: 2017/6/7
  Time: 15:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>添加学生信息</title>
    <style>
        a {
            text-decoration: none;
            color: blue;
        }

        a:hover {
            color: chocolate;
        }

        table tr td {
            border: 1px solid black;
            text-align: center;
            margin: 0;
            padding: 0;
        }

        table {
            border: 1px solid black;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div>
    <%-- <sf:form method="post" enctype="multipart/form-data" modelAttribute="student">
       <table>

         <tr>
           <td>姓名</td>
           <td><sf:input path="studentName"></sf:input></td>
         </tr>
         <tr>
           <td>性别</td>
           <td><sf:input path="studentSex"></sf:input></td>
         </tr>
         <tr>
         <td>电话</td>
         <td><sf:input path="studentPhone"></sf:input></td>
       </tr>
         <tr>
           <td>学号</td>
           <td><sf:input path="studentNumber"></sf:input></td>
         </tr>
         <tr>
           <td>地址</td>
           <td><sf:input path="studentAddress"></sf:input></td>
         </tr>
           &lt;%&ndash;<tr>&ndash;%&gt;
           &lt;%&ndash;<td>班级</td>&ndash;%&gt;
           &lt;%&ndash;<td><sf:input path="studentStatus"></sf:input></td>&ndash;%&gt;
           &lt;%&ndash;</tr>&ndash;%&gt;
         <tr>
           <td colspan="2">
             <input type="submit" value="完成添加" style="width: 100%"/>
           </td>
         </tr>
         <tr>
           <td  colspan="2"><a href="/student/list">返回首页</a>
           </td>
         </tr>
       </table>
     </sf:form>
   --%>
    <form method="post" enctype="multipart/form-data">
        <table>
            <tr>
                <td>姓名</td>
                <td>
                    <input name="studentName" type="text"/>
                </td>
            </tr>
            <tr>
                <td>性别</td>
                <td>
                    <input type="radio" name="studentSex" value="男"/> 男
                    <input type="radio" name="studentSex" value="女"/> 女
                </td>
            </tr>
            <tr>
                <td>电话</td>
                <td>
                    <input name="studentPhone" type="text"/>
                </td>
            </tr>
            <tr>
                <td>学号</td>
                <td>
                    <input name="studentNumber" type="text"/>
                </td>
            </tr>
            <tr>
                <td>地址</td>
                <td><input name="studentAddress" type="text"/><br/></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" value="提交"/>
                    <input type="reset" value="重置"/>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>